package com.lovo.sheyingback.service;

import com.github.pagehelper.PageInfo;
import com.lovo.sheyingback.bean.Role;

import java.util.Map;

/**
* @author BDK-THINKPAD
* @description 针对表【t_role(角色表)】的数据库操作Service
* @createDate 2023-07-24 21:35:05
*/
public interface RoleService {
    PageInfo<Role> listRole(Integer current,Integer pageSize);
    Map listRoleFunction(Integer roleId);
    Role getById(Integer id);
    int insert(Role role);
    int assignRoleFunction(Integer roleId,Integer [] functionIds);
    int update(Role role);
    int delete(Integer id);
}
